/**
 * 
 */
package com.gordon.tips.service.impl;

import java.util.List;

import com.gordon.tips.dao.ReplyDao;
import com.gordon.tips.domain.Reply;
import com.gordon.tips.service.ReplyService;

/**
 *****************************************************************************
 ** Module : Implemention of ReplyService
 ** 
 ** Date:  Aug 16th,2011
 ** 
 ** Author: Gordon
 ** 
 ** Email: 462991284@qq.com
 ** 
 ** (C) Copyright 2011 Gordon Office
 *****************************************************************************
 */

public class ReplyServiceImpl implements ReplyService {	
	
	private ReplyDao replyDao;


	public List<Reply> getRepliesByTopicId(int id,int start) {
		return replyDao.getRepliesByTopicId(id,start);
	}

	public int addNewReply(Reply reply,int topicId,int authorId) {
		return replyDao.addNewReply(reply,topicId,authorId);		
	}

	public void editReply(int replyId, String content) {
		replyDao.editReply(replyId,content);		
	}
	
	public Reply getReplyById(int id) {
		return replyDao.getReplyById(id);
	}
	
	public ReplyDao getReplyDao() {
		return replyDao;
	}


	public void setReplyDao(ReplyDao replyDao) {
		this.replyDao = replyDao;
	}
	
	

}
